package com.hy.pojo.healthvideo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hy.pojo.doctor.AppDoctor;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("health_video")
public class HealthVideo {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;
    private String description;
    private String videoUrl;
    private Integer duration;
    private Integer doctorId;
    private Integer viewCount;
    private Integer likeCount;
    private Integer status;
    private Integer sort;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Boolean isDeleted;
    private String category;
    
    // 关联医生信息（不映射到数据库）
    @TableField(exist = false)
    private AppDoctor appDoctor;
}